package com.itheima.runnable;

public class RunnableDemo02 {
    public static void main(String[] args) {
         /*System.out.println("睡觉前");
        Thread.sleep(3000);//这边会休息个3秒
        System.out.println("睡醒了");*/

         MyRunnable mr = new MyRunnable();

         Thread t1 = new Thread(mr);
         Thread t2 = new Thread(mr);

         t1.start();
         t2.start();
    }
}
